/*
 * session.cpp
 *
 *  Created on: 26/06/2011
 *      Author: george
 */

#include "session.h"
#include "info.h"

Session::Session() {

}

bool Session::addIcmp(in_addr * src,in_addr * dst, icmp_hdr_t *icmp){
	return this->icmpSession.add(src, dst, icmp);
}


bool Session::addIcmpError(in_addr *src, in_addr *dst,icmp_hdr_t *icmp){
	return this->icmpErrorSession.add(src, dst, icmp);
}


bool Session::addTcp(ip_hdr_t *ip, tcp_hdr_t *tcp){
	return this->tcpSession.add(ip, tcp);
}

bool Session::addUdp(ip_hdr_t *ip, udp_hdr_t *udp){
	return this->udpSession.add(ip, udp);
}
